import os
from typing import Sequence, Set
import xlwings as xw
import pandas as pd
from xlwings.main import Books
app = xw.App(visible=False, add_book=False)


class aaaaa():

    def print_directory_contents(self,path=r'.\工作区文件夹'):

        import os
        
        for child_path in os.listdir(path):
            full_child_path = os.path.join(path, child_path)
            if os.path.isdir(full_child_path):
                self.print_directory_contents(full_child_path)
                n=n+1
            else:
                print(full_child_path)
                
        
        

if __name__ == '__main__':
    aa=aaaaa()
    aa.print_directory_contents()
